﻿using System;
using System.Web.UI.WebControls;
using BLL;

namespace UI.ModSalary
{
    public partial class JjProdForInput : System.Web.UI.Page
    {
        JjProdBiz jjProdBiz = new JjProdBiz();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                gvList.DataSource = jjProdBiz.GetLists("","Y");
                gvList.DataBind();
            }
        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {
            gvList.DataSource = jjProdBiz.GetLists(txtSearchWord.Text.Trim(), "Y");
            gvList.DataBind();
        }
        protected void gvList_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            gvList.PageIndex = e.NewPageIndex;
            gvList.DataSource = jjProdBiz.GetLists(txtSearchWord.Text.Trim(),"Y");
            gvList.DataBind();
        }
    }
}